<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="cn.jingsheng.backup.bean.*,cn.jingsheng.backup.util.*"%>
<%UserLogin userLogin = (UserLogin) session.getAttribute("userLogin"); %>
<%
BackupFile backupFile = (BackupFile)request.getAttribute("backupFile") ;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>竞盛公司业务文档电子报备系统--信息修改</title>
<script type="text/javascript">
	function checkForm(){
		if(document.uploadFile.aliasFileName.value==""){
			alert("请选择上传文档!");
			return false;
		}
		var btnsubmit = document.getElementById("btnsubmit");
		btnsubmit.value="正在上传,请稍候...";
		btnsubmit.disabled="disabled";
		return true;
	}
</script>
</head>
<body>
<p align="center" style="font-size: 24px;">竞盛公司业务文档电子报备系统--信息修改</p>
<form name="uploadFile" method="post" action="BackupServlet?cmd=update" enctype="multipart/form-data" onsubmit="return checkForm();">
	<table border=1 align="center">
		<tr>
			<td>所属公司</td>
			<td><input name="company" value="<%=StringUtil.trimToEmpty(backupFile.getCompany()) %>"/></td>
		</tr>
		<tr>
			<td>报备人</td>
			<td><input name="createUser" value="<%=userLogin.getUserName()%>" readonly="readonly"/></td>
		</tr>
		<tr>
			<td>关键字</td>
			<td><input name="searchKey" value="<%=StringUtil.trimToEmpty(backupFile.getSearchKey()) %>"/></td>
		</tr>
		<tr>
			<td>上传文档</td>
			<td><input name="aliasFileName" type="file"/></td>
		</tr>
		<tr>
			<td><input type="hidden" name="id" value="<%=StringUtil.trimToEmpty(backupFile.getId())%>">&nbsp;</td>
			<td><input id="btnsubmit" name="submit" type="submit" value="上传"/>
			<input type="button" value="返回" onclick="window.close();"/>
			</td>
		</tr>
	</table>
</form>
</body>
</html>